/**
  ******************************************************************************
  * @file    common_types.h
  * @author  Sherlock
  * @version V0.1
  * @date    08/7/2024
  * @brief   Common types to be reused.
  ******************************************************************************
  * @copy
  *
  * <h2><center>&copy; COPYRIGHT 2010 Feirui</center></h2>
  */ 

#ifndef  __COMMON_TYPES_H__
#define  __COMMON_TYPES_H__

#ifdef __cplusplus
 extern "C" {
#endif


/**
  * @brief  INCLUDE FILES.
  */
#include "n32g45x.h"


/**
  * @brief Definitions
  */

/* GPIO结构体用于初始化等操作 */
typedef struct
{
  uint32_t              RCC_APB2Periph;
  GPIO_ModeType         GPIO_Mode     ;
  GPIO_SpeedType        GPIO_Speed    ;
  GPIO_Module*          GPIOx         ;
  uint16_t              GPIO_Pin      ;
} GPIOPortCfg_TypeDef;


/* ADC结构体用于初始化等操作 */
typedef struct
{
  uint8_t ADC_Channel;
  uint8_t Rank;
  uint8_t ADC_SampleTime;
} ADCRegularCfg_TypeDef;



#ifdef __cplusplus
}
#endif


#endif   /*   __COMMON_TYPES_H__   */